package top.yxqin.easymine.commands;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.ArrayList;
import java.util.List;

public class onTabComplete implements TabCompleter
{

    @Nullable
    @Override
    public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label,
                                      @NotNull String[] args)
    {
        if (sender instanceof Player)
        {
            if(args.length>1)
                return null;
            ArrayList<String> list=new ArrayList<>();
            list.add("true");
            list.add("false");
            return  list;
        }


        return null;
    }
}
